package com.appkubes.mall.core.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * 配送计划
 * @author Rongjie
 */
@Data
@TableName("mall_order_plan")
@KeySequence(value = "mall_order_plan_SEQ")
@ApiModel(value = "MallOrderPlan对象")
public class MallOrderPlan implements Serializable{

       private String appKey;

       @TableId(value = "order_plan_key", type = IdType.UUID)
       private String orderPlanKey;

       @ApiModelProperty(value = "线路id")
       private String lineKey;

       @ApiModelProperty(value = "配送员id")
       private String clerkKey;

       @ApiModelProperty(value = "计划配送时间", example = "1")
       private Integer planTime;

       @ApiModelProperty(value = "计划配送数量", example = "1")
       private Integer planNum;

       @ApiModelProperty(value = "商品id")
       private String goodsKey;

       @ApiModelProperty(value = "订单id")
       private String orderKey;

       @ApiModelProperty(value = "团长id")
       private String leaderKey;

       @ApiModelProperty(value = "业务员id")
       private String salesmanKey;

       @ApiModelProperty(value = "用户id")
       private String userKey;

       @ApiModelProperty(value = "saas_point用户id")
       private String saasUserid;

       @ApiModelProperty(value = "订单类型", example = "1")
       private Integer orderType;

       @ApiModelProperty(value = "配送单id")
       private String deliveryKey;

       @ApiModelProperty(value = "单价")
       private BigDecimal price;

       private String goodsName;

       @ApiModelProperty(value = "背景图片")
       private String pic;

       private String attrKeys;

       private String attrNames;

       private BigDecimal payAmount;

       @ApiModelProperty(value = "unPay未支付（待支付）；payFail（支付失败）；paySuccess支付成功（待配送）；sending配送中；arrive送达（待自提）；completed已完成；cancel已取消；cancel已取消;")
       private String state;

       @ApiModelProperty(value = "是否改期", example = "1")
       private Integer isChange;

       @ApiModelProperty(value = "修改日志")
       private String changeLog;

       @ApiModelProperty(value = "是否已采购, 0未采购 1已采购", example = "1")
       private Integer isPurchasing;

       @ApiModelProperty(value = "是否已删除", example = "1")
       private Integer isDelete;

       @ApiModelProperty(value = "是否显示", example = "1")
       private Integer isShow;

       @ApiModelProperty(value = "创建时间", example = "1")
       private Integer createTime;

       @ApiModelProperty(value = "修改时间", example = "1")
       private Integer updateTime;

       @ApiModelProperty(value = "版本号", example = "1")
       @Version
       private Integer version;

}
